<?php
$url = $mosConfig_live_site."/administrator/components/com_content/uploads/";

$sql = "SELECT * FROM #__content WHERE state=1 AND sectionid!=1 AND catid=15 ORDER BY ordering ASC, id DESC LIMIT 0,5";
$database->setQuery($sql);
$lsServices = $database->loadObjectList();
?>
<div class="content_main">
	<div class="title_main"><span>Dịch vụ nổi bật</span></div>
	<div class="show_content">
	<?php
	for ($i=0; $i<count($lsServices); $i++){
	$link = sefRelToAbs("index.php?option=com_content&task=view&catid=".$lsServices[$i]->catid."&id=".$lsServices[$i]->id).$lsServices[$i]->title_alias.".html";
	?>
	<div class="lsNews">
		<a href="<?php echo $link;?>"><img src="<?php echo $url.$lsServices[$i]->img;?>" /></a>
		<p><a href="<?php echo $link;?>"><?php echo $lsServices[$i]->title;?></a></p>
		<?php echo mb_substr($lsServices[$i]->introtext,0,500,"utf-8")."...";?>
		<p align="right"><a href="<?php echo $link;?>" class="chi_tiet">Xem tiết...</a></p>
	</div>
	<?php
	}
	?>
	</div>
</div>
